<?php /* Smarty version 2.6.16, created on 2009-04-26 00:25:52
         compiled from MemberGallery.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'MemberGallery.html', 1, false),array('function', 'str_replace', 'MemberGallery.html', 7, false),array('function', 'url', 'MemberGallery.html', 22, false),array('function', 'language', 'MemberGallery.html', 22, false),array('function', 'img', 'MemberGallery.html', 23, false),array('modifier', 'process_code', 'MemberGallery.html', 20, false),array('modifier', 'truncate', 'MemberGallery.html', 20, false),)), $this); ?>
<?php echo smarty_function_messages(array('block' => 'gallery'), $this);?>

<table style="width:100%;" cellpadding="5" cellspacing="5">
 <tr>
 <td style="font-size:9pt;">
<?php if ($this->_tpl_vars['iCnt']): ?>
<div style="text-align:right;">
<?php echo smarty_function_str_replace(array('text' => "`viewing_ifrom_ito_out_of_icnt_image`",'iFrom' => ($this->_tpl_vars['iFrom']),'iTo' => ($this->_tpl_vars['iTo']),'iCnt' => ($this->_tpl_vars['iCnt'])), $this);?>

<br/><br/>
</div>
<?php endif; ?>

 <br />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if (count ( $this->_tpl_vars['aItems'] )): ?>
 <table style="width:100%;margin-left:auto;margin-right:auto;" cellpadding="4" cellspacing="4">
 <tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aitems'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['aitems']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['aItem']):
        $this->_foreach['aitems']['iteration']++;
?>
    <td style="width:125px; font-size:11pt;">
    	<b><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['aItem']['text'])) ? $this->_run_mod_handler('process_code', true, $_tmp) : smarty_modifier_process_code($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, '75') : smarty_modifier_truncate($_tmp, '75')); ?>
</b>
    	<div>
 		<a href="<?php echo smarty_function_url(array('link' => 'public.user.gallery.view','name' => $this->_tpl_vars['aItem']['user'],'id' => $this->_tpl_vars['aItem']['id'],'foxseotitle' => $this->_tpl_vars['aItem']['text']), $this);?>
"<?php if ($this->_tpl_vars['aItem']['is_adult']): ?> onclick="return confirm('<?php echo smarty_function_language(array('text' => 'this_picture_can_be_erotic_in_natur'), $this);?>
');"<?php endif; ?>>
 		<?php if ($this->_tpl_vars['aItem']['is_adult']): ?><img src='design/pic/18+.jpg' width='120' alt='' height='120' style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';" /><?php else:  echo smarty_function_img(array('src' => ($this->_tpl_vars['sImageUrl'])."thumb/".($this->_tpl_vars['aItem']['id']).".jpg",'src_def' => "design/pic/noimage_120.jpg",'alt' => "",'style' => "vertical-align:middle;",'class' => 'pic1','onmouseover' => "this.className='pic2';",'onmouseout' => "this.className='pic1';"), $this); endif; ?>
 		</a>
 		</div>
    <?php if (isStaff ( )): ?>
    	<div style="padding:5px;">
    		<a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','delete' => $this->_tpl_vars['aItem']['id']), $this);?>
" onclick="sure('');">[ <?php echo smarty_function_language(array('text' => 'delete'), $this);?>
 ]</a>
    		<?php if ($this->_tpl_vars['aItem']['feature'] == 1): ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','removefeature' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'unmake_featured'), $this);?>
 ]</a><?php else: ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','makefeature' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'make_featured_763'), $this);?>
 ]</a><?php endif; ?>	
    	</div>
    <?php endif; ?> 		
 	</td>
<?php if ($this->_tpl_vars['key'] % 3 == 2): ?>
</tr>
<tr>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
 	 </tr>
 </table>
<?php else: ?>
<div class="message_info"><?php echo smarty_function_language(array('text' => 'there_are_no_pictures_posted_yet'), $this);?>
</div>
<?php endif; ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <br /><br />
 </td>
 </tr>
 </table>